\hypertarget{game_8h}{
\section{src/include/game.h File Reference}
\label{game_8h}\index{src/include/game.h@{src/include/game.h}}
}


Declarations for main game functions.  


{\ttfamily \#include $<$types.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$SDL.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{game_8h_a98e3ba5b5e7662720921be9dd63364d6}{spGame} (int scoreLimit, Uint32 flags)
\begin{DoxyCompactList}\small\item\em Function to run the single-\/player game mode. \item\end{DoxyCompactList}\item 
Uint32 \hyperlink{game_8h_a9a6f7a7a325dc635950bcbc87d47531f}{gameLoopTimer} (Uint32 interval, void $\ast$param)
\begin{DoxyCompactList}\small\item\em Game loop timer. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Jon \char`\"{}delrio\char`\"{} Cox 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
February 2, 2011 
\end{DoxyDate}


Definition in file \hyperlink{game_8h_source}{game.h}.



\subsection{Function Documentation}
\hypertarget{game_8h_a9a6f7a7a325dc635950bcbc87d47531f}{
\index{game.h@{game.h}!gameLoopTimer@{gameLoopTimer}}
\index{gameLoopTimer@{gameLoopTimer}!game.h@{game.h}}
\subsubsection[{gameLoopTimer}]{\setlength{\rightskip}{0pt plus 5cm}Uint32 gameLoopTimer (
\begin{DoxyParamCaption}
\item[{Uint32}]{ interval, }
\item[{void $\ast$}]{ param}
\end{DoxyParamCaption}
)}}
\label{game_8h_a9a6f7a7a325dc635950bcbc87d47531f}

\begin{DoxyParams}{Parameters}
{\em interval} & Interval till next trigger. \\
\hline
{\em param} & Data to supply to timer.\\
\hline
\end{DoxyParams}
Credit to meandmark.com for the Timer howto. \href{http://www.meandmark.com/sdlopenglpart5.html}{\tt http://www.meandmark.com/sdlopenglpart5.html} 

Definition at line 64 of file game.c.

\hypertarget{game_8h_a98e3ba5b5e7662720921be9dd63364d6}{
\index{game.h@{game.h}!spGame@{spGame}}
\index{spGame@{spGame}!game.h@{game.h}}
\subsubsection[{spGame}]{\setlength{\rightskip}{0pt plus 5cm}bool spGame (
\begin{DoxyParamCaption}
\item[{int}]{ scoreLimit, }
\item[{Uint32}]{ flags}
\end{DoxyParamCaption}
)}}
\label{game_8h_a98e3ba5b5e7662720921be9dd63364d6}

\begin{DoxyParams}{Parameters}
{\em scoreLimit} & Score to start players at. Game ends at Zero. \\
\hline
{\em flags} & Options for the game. \\
\hline
\end{DoxyParams}


Definition at line 20 of file game.c.

